package com.youxin.authserver.api;

import java.util.concurrent.Future;



import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.youxin.busfoundation.bean.ResponseObject;
import com.youxin.busfoundation.bean.log.RequestLogBean;

/**
 * 日志接口调用
 * @author yingde.cao
 *
 */
@FeignClient(value = "logcenter")
public interface LogApi {
	
	@RequestMapping(value = "/save", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	public ResponseObject saveLog(@RequestBody RequestLogBean logBean);
	
	@RequestMapping(value = "/saveasync", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	public Future<ResponseObject> saveLogAsync(@RequestBody RequestLogBean logBean);
}
